import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import PageTools from '@/components/PageTools'

import '@/styles/index.scss' // global css

import App from './App'

import store from './store'

import router from './router'
import './permission'

import '@/icons' // icon
import '@/directive'
import '@/styles/element-variables.scss'
Vue.use(ElementUI)
// 全局组件注册和引用
import componentPlugin from '@/components/index'
Vue.use(componentPlugin)

Vue.config.productionTip = false

// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
